import java.awt.Graphics;


public class ScreenGraphics {
	
	public static void paintTiles(Graphics g){
		for(int i = 0; i < VarHolder.ArrayMax; i++){
			//g.fillRect(VarHolder.TileX[i], VarHolder.TileY[i], VarHolder.TileWidth, VarHolder.TileHeight);
			g.drawImage(VarHolder.Tile[i],VarHolder.TileX[i]+VarHolder.DirX, VarHolder.TileY[i]+VarHolder.DirY, VarHolder.TileWidth, VarHolder.TileHeight,null);
			g.drawImage(VarHolder.PreviewBlock, 20, 20, 100, 100, null);
			g.fillOval(VarHolder.MouseX*VarHolder.TileWidth, VarHolder.MouseY*VarHolder.TileHeight,VarHolder.TileHeight, VarHolder.TileHeight);
		}
	}

}
